package com.tan.steamship.controller;

import com.tan.steamship.common.CommonResponse;
import com.tan.steamship.service.UserService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tanlongjie
 * @Desc
 * @date 2024/11/25
 * @since 1.0
 */
@RestController
@Slf4j
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class TestController {
    private final UserService userService;


    @GetMapping("/test")
    public CommonResponse test() {

        return CommonResponse.success(userService.list());
    }

}
